﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Management.Automation;
using System.Management.Automation.Host;
using System.Security;
using System.Security.Principal;

namespace Quest.FIMPowerShellSnapin
{
    /// <summary>
    /// PowerShell object that represents an connection to a FIM server
    /// </summary>
    public class FIMPSSession
    {
        private string _fIMServer;
        private PSCredential _creds;
        private PSHost _pSHost;
        private FIMPSClient _client;

        internal FIMPSSession(string fIMServer, PSCredential creds, PSHost pSHost)
        {
            _fIMServer = fIMServer;
            _creds = creds;
            _pSHost = pSHost;
            _client = new FIMPSClient(_fIMServer, _creds, _pSHost);
        }

        public string Server
        {
            get
            {
                return _fIMServer;
            }
        }

        public PSCredential Credential
        {
            get
            {
                return _creds;
            }
        }

        public FIMPSClient Client
        {
            get
            {
                return _client;
            }
        }
    }
}
